import request from "@/api/index"

export default{
  /**
   * @description: 添加直鱼记录 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
   add(params){
    const url = "/health/deadRecord/add"
    return request.post(url,params)
  },
  /**
   * @description: 编辑直鱼记录 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
   edit(params){
    const url = "/health/deadRecord/edit"
    return request.post(url,params)
  },
  /**
   * @description: 审核 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
  audit(params){
    const url = "/health/deadRecord/audit"
    return request.post(url,{
      ...params
    })
  },
  /**
   * @description: 导出 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
  export(params){
    const url = "/health/deadRecord/export"
    return request.filePost(url,{
      ...params
    })
  },
  /**
   * @description: 置为未审核 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
  resetAudit(params){
    const url = "/health/deadRecord/resetAudit"
    return request.post(url,{
      ...params
    })
  },
  /**
   * @description: 批量删除直鱼记录 *代表必填
   * @param {String/Number} id *
   * @return {Object}
   */
  delListById(params){
    const url = "/health/deadRecord/delListById"
    return request.get(url,params)
  },
  /**
   * @description: 单个删除直鱼记录 *代表必填
   * @param {String/Number} id *
   * @return {Object}
   */
   delById(params){
    const url = "/health/deadRecord/delById"
    return request.get(url,params)
  },
  /**
   * @description: 条件查询 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
  queryByCondition(params){
    const url = "/health/deadRecord/queryByCondition"
    return request.post(url,params)
  },
  /**
   * @description: 分页查询直鱼记录 *代表必填
   * @param {Object} params *
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @return {Object}
   */
   queryPageByCondition(params){
    const url = "/health/deadRecord/queryPageByCondition"
    return request.post(url,params)
   },
  /**
   * @description: 直鱼报表分页查询 *代表必填
   * @param {Object} params *
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @return {Object}
   */
   queryExportByPage(params){
    const url = "/health/deadReport/queryPageByCondition"
    return request.post(url,params)
   },
   /**
    * @description: 导出报表 *代表必填
    * @param {Object} params *
    * @return {Object}
    */
   exportRecord(params){
     const url = "/health/deadReport/export"
     return request.filePost(url,{
       ...params
     })
   },
   
  /**
   * @description: 分页查询鱼塘信息 *代表必填
   * @param {Object} params *
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @return {Object}
   */
  queryPondOperationRecord(params){
    const url = "/base/operationRecord/queryPageByCondition"
    return request.post(url,{
      ...params
    })
  }
}
